package cn.edu.ctbu.datajpa01.repository;

import cn.edu.ctbu.datajpa01.domain.Teacher;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface TeacherRepository  extends JpaRepository<Teacher,Long> {
    List<Teacher> findByTnoAndTpassword(String tno, String password);
}
